
# history历史格式和缓存数量
cat >> /etc/profile.d/history.sh <<EOF
# Administrator specific aliases and functions for system security
export HISTSIZE=10000
export HISTFILESIZE=10000
export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S $(whoami)@$(who -m | grep -oE '([0-9]{1,3}\.){3}[0-9]{1,3}') "
export TIME_STYLE=long-iso
EOF

source /etc/profile.d/history.sh

